package com.haoze.nurseapp.model;


import com.haoze.common.model.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * TASK_NODE_CONDITION
 * @author 
 */
@Table(name = "idr.TASK_NODE_CONDITION")
public class TaskNodeConditionEntity extends BaseEntity implements Serializable {
    /**
     * 任务节点条件ID
     */
    @Id
    @Column(name = "CONDITION_ID")
    private String conditionId;

    /**
     * 任务节点ID
     */
    @Column(name = "TASK_NODE_ID")
    private String taskNodeId;

    /**
     * 前一任务节点ID
     */
    @Column(name = "PRE_TASK_NODE_ID")
    private String preTaskNodeId;

    /**
     * 公式(JavaScript执行公式 例入 (true && false) || true)
     */
    @Column(name = "FORMULA")
    private String formula;

    /**
     * 优先级(相同阶段任务的判断优先级 从1开始)
     */
    @Column(name = "PRIORITY")
    private String priority;

    /**
     * 任务ID
     */
    @Column(name = "TASK_ID")
    private String taskId;

    private static final long serialVersionUID = 1L;

    public String getConditionId() {
        return conditionId;
    }

    public void setConditionId(String conditionId) {
        this.conditionId = conditionId;
    }

    public String getTaskNodeId() {
        return taskNodeId;
    }

    public void setTaskNodeId(String taskNodeId) {
        this.taskNodeId = taskNodeId;
    }

    public String getPreTaskNodeId() {
        return preTaskNodeId;
    }

    public void setPreTaskNodeId(String preTaskNodeId) {
        this.preTaskNodeId = preTaskNodeId;
    }

    public String getFormula() {
        return formula;
    }

    public void setFormula(String formula) {
        this.formula = formula;
    }

    public String getPriority() {
        return priority;
    }

    public void setPriority(String priority) {
        this.priority = priority;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }
}